import service from '@/utils/request'

// @Tags UserOrderDetail
// @Summary 创建UserOrderDetail
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserOrderDetail true "创建UserOrderDetail"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /userOrderDetail/createUserOrderDetail [post]
export const createUserOrderDetail = (data) => {
     return service({
         url: "/userOrderDetail/createUserOrderDetail",
         method: 'post',
         data
     })
 }


// @Tags UserOrderDetail
// @Summary 删除UserOrderDetail
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserOrderDetail true "删除UserOrderDetail"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userOrderDetail/deleteUserOrderDetail [delete]
 export const deleteUserOrderDetail = (data) => {
     return service({
         url: "/userOrderDetail/deleteUserOrderDetail",
         method: 'delete',
         data
     })
 }

// @Tags UserOrderDetail
// @Summary 删除UserOrderDetail
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除UserOrderDetail"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userOrderDetail/deleteUserOrderDetail [delete]
 export const deleteUserOrderDetailByIds = (data) => {
     return service({
         url: "/userOrderDetail/deleteUserOrderDetailByIds",
         method: 'delete',
         data
     })
 }

// @Tags UserOrderDetail
// @Summary 更新UserOrderDetail
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserOrderDetail true "更新UserOrderDetail"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /userOrderDetail/updateUserOrderDetail [put]
 export const updateUserOrderDetail = (data) => {
     return service({
         url: "/userOrderDetail/updateUserOrderDetail",
         method: 'put',
         data
     })
 }


// @Tags UserOrderDetail
// @Summary 用id查询UserOrderDetail
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserOrderDetail true "用id查询UserOrderDetail"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /userOrderDetail/findUserOrderDetail [get]
 export const findUserOrderDetail = (params) => {
     return service({
         url: "/userOrderDetail/findUserOrderDetail",
         method: 'get',
         params
     })
 }


// @Tags UserOrderDetail
// @Summary 分页获取UserOrderDetail列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.PageInfo true "分页获取UserOrderDetail列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /userOrderDetail/getUserOrderDetailList [get]
 export const getUserOrderDetailList = (params) => {
     return service({
         url: "/userOrderDetail/getUserOrderDetailList",
         method: 'get',
         params
     })
 }